package com.wq.gof.designer.strategy;

/**
 * @Author: wangqiang20995
 * @Date:2018/10/28
 * @Description:
 * @Resource:
 */
public class ThemeManager {
    private Theme theme;

    public void setTheme(Theme theme) {
        this.theme = theme;
    }

    public void describe(String message){
        this.theme.describeWithTheme(message);
    }

    public static void main(String args[]){
        Theme light = new LightTheme();
        ThemeManager manager = new ThemeManager();
        manager.setTheme(light);
        manager.describe("Paul");
    }
}
